import com.java.demo.controller.UserController;
import com.java.demo.model.Projecter1;
import com.java.demo.model.Projecter2;
import com.java.demo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.stereotype.Controller;

import javax.annotation.Resource;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: lishuo
 * Date: 2023-09-01
 * Time: 17:20
 */
public class Test {
    public static void main(String[] args) {
        ApplicationContext context =
                new ClassPathXmlApplicationContext("spring-config.xml");
        Projecter1 projecter1 = context.getBean("projecter1", Projecter1.class);
        Projecter2 projecter2 = context.getBean("projecter2", Projecter2.class);

        projecter1.doMethod();
        projecter2.doMethod();

    }
}
